CC =gcc

all: clock1 clock2 clock3

clock1:  clock.h clock-ex3.c main.c
	gcc -g -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
	-DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED \
	-o clock1 clock-ex3.c main.c \
	`pkg-config --libs --cflags gtk+-2.0`

clock2:  clock.h clock2.c main.c
	gcc -g -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
	-DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED \
	-o clock2 clock2.c main.c \
	`pkg-config --libs --cflags gtk+-2.0`

clock3:  clock.h clock3.c main.c
	gcc -g -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED \
	-DGDK_PIXBUF_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED \
	-o clock3 clock3.c main.c \
	`pkg-config --libs --cflags gtk+-2.0`
clean:
	rm clock1 clock2 clock3